package com.nsl.my_youlai.bbu2.model.bo.bbu;

import com.nsl.my_youlai.bbu2.enums.BbuModelEnum;
import com.nsl.my_youlai.bbu2.enums.NetGenerationEnum;
import com.nsl.my_youlai.bbu2.enums.VendorEnum2;
import com.nsl.my_youlai.bbu2.enums.BoardTypeEnum;
import lombok.Data;

import java.util.List;

@Data
public class BbuBoard2 {

    private int excelRowIndex;
    private VendorEnum2 vendor;

    private Integer nodeId;

    private Integer slotIndex;

    private BbuModelEnum bbuModelEnum;

    private String boardModelName;

    //主控，基带
    private BoardTypeEnum boardTypeEnum;

    private List<String> networkAbilityList;



    public BbuBoard2() {
    }

    public BbuBoard2(int excelRowIndex, VendorEnum2 vendor, BbuModelEnum bbuModelEnum,Integer nodeId, BoardTypeEnum boardTypeEnum) {
        this.excelRowIndex = excelRowIndex;
        this.vendor = vendor;
//        if(BoardTypeEnum.SWITCH_BOARD==boardTypeEnum){
//            boardTypeEnum=BoardTypeEnum.CONTROL_BOARD;
//        }
        this.bbuModelEnum = bbuModelEnum;

        this.boardTypeEnum = boardTypeEnum;
        this.nodeId=nodeId;
    }

    public NetGenerationEnum getNetGenerationEnum(){
        return bbuModelEnum.getNetGenerationEnum();
    }

}
